package make.free.app.mcaro.game;

import make.free.app.mcaro.util.Constan;

import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.entity.scene.Scene;

import android.content.Context;

public class MT {
	private Engine mEngine;
	private Scene mScene;
	private Context mContext;
	private static int positionX = 4, positionY=80;
	public static int [][]list_item;
	public MT(Engine mEngine, Scene mScene,Context mContext, int positionX, int positionY) {
		super();
		this.mEngine = mEngine;
		this.mScene = mScene;
		this.mContext=mContext;
	}
	public void createData()
	{
		list_item =new int[Constan.row][Constan.column]; 
		for(int i=0;i<Constan.row;i++)
			for(int j=0;j<Constan.column;j++)
			{
				list_item[i][j] = -1;
			}
	}

	public void createMT()
	{
		for(int i =0;i<Constan.row;i++)
		{
			for(int j=0;j<Constan.column;j++)
			{
				Title t= new Title(mEngine, mScene,mContext);
				t.onCreateTitles(positionX+ i*25, positionY+ j*60, i, j);
			}
		}
	}
	public static int getXByI(int i) {
        int Px = positionX + (i * 25 );
 
        return Px;
    }
	public static int getYByJ(int j) {
        int Py = positionY + (j * 60);
        return Py;
    }
	
}
